﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OISTools
{
    public partial class Menu : Form
    {
        public Menu()
        {
            InitializeComponent();
        }

        private void miScriptDebugger_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.ScriptDebugger());
        }

        private void miDBCompare_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.DBCompare());

        }

        private void miCreateScript_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.CreateScript());
        }

        private void miLanguageAnayle_Click(object sender, EventArgs e)
        {
            OpenWindow(new LanguageAnalyse.LanguageCompare());
        }

        private void miTranslateSuggest_Click(object sender, EventArgs e)
        {
            OpenWindow(new LanguageAnalyse.TranslateSuggest());
        }

        private void OpenWindow(Form f1)
        {
            f1.Show();
        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.DBAnalyse());
        }

        private void miReadApfield_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.ReadApfield());
        }

        private void miQueryApfield_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.QueryApfield());
        }

        private void miTask_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.TaskList());
        }

        private void Menu_Load(object sender, EventArgs e)
        {
            this.ShowInTaskbar = false;
            notifyIcon1.Visible = true;
            this.Hide();
        }

        private void miExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void miDBAnalyse_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.DBAnalyse());
        }

        private void miFunction_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.SearchProc());
        }

        private void mi_functionRemark_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.FunctionRemark());
        }

        private void menuItemFlow_Click(object sender, EventArgs e)
        {
            OpenWindow(new CreatePGSQLDataScript.DiagramList());
        }

        private void miConvertToPG_Click(object sender, EventArgs e)
        {
            OpenWindow(new ConvertProcToPGSql());
        }
    }
}
